import {defineConfig} from 'vite'
import vue from '@vitejs/plugin-vue'
import ElementPlus from 'unplugin-element-plus/vite'

export default defineConfig({
    css: {
        preprocessorOptions: {
            scss: {
                additionalData: `@use "src/index.scss" as *;`,
                charset: false
            },
        },
    },
    plugins: [
        vue(),
        ElementPlus({
            useSource: true,
        })
    ],
    base: '',//根目录
    build: {
        outDir: 'dist',//输出目录
    },
    /*    server:{
            proxy:{
                //这里是通过请求/api 来转发到 https://api.pingping6.com/
                //假如你要请求https://api.*.com/a/a
                //那么axios的url，可以配置为 /api/a/a
                '/api': 'https://api.*.com/'
            }
        }*/
})
